<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/pages/public/head.jsp"%>
<body>
<%@ include file="/v1/pages/public/head_menu.jsp"%>
<%
if(hosts[0]!=null){
%>
<input type="hidden" value="<%=hosts[0]%>" id="shopId"/>

<%	
}else{
%>	
<input type="hidden" value="${param.shopId}" id="shopId"/>

<%	
}
%>

<div class="ldh-nav clearfix">
	<!-- <div class="fl-left" id="ldh-nav-left">
    	<p class="nav_800">全部分类</p>
		<ul id="shopMerchandiseTypeList">
			<li><span>loading...</span></li>
		</ul>
	</div> -->
	    <div class="fl-left ldh-navBox">
    	<div class="cont_1240">
    		<div class="ldh-navClassall on">
                <h2><span>本店商品分类</span></h2>
                <div class="ldh-navClassall-list">
                    <ul id="shopMerchandiseTypeList">

                    </ul>
                </div>
            </div>
            <div class="fl-left" id="ldh-nav-left">
                <ul>
                   <li class="ldh-search"><input class="ldh-search-input"
				type="text" placeholder="搜索本店商品" id="merchandiseName"/>
				<button type="button" class="ldh-search-btn" onclick="$ldh_shop.searchMerchandise()" ></button></li>
                </ul>
            </div>
        </div>
    </div>   
	<div class="fl-right ldh-cart" id="ldh-cart">
		<div class="ldh-cart-nav">
			<div class="fl-left ldh-free-delivery">快速送货</div>
			<div class="fl-right ldh-cart-box">
				<div class="fl-left">
					<span id="cartNum">0</span>件
				</div>
				<div class="fl-right">
					¥<span class="ldh-cart-money" id="price">0.00</span>
				</div> 
			</div>
		</div>
		<div class="ldh-cart-in">
			<div class="ldh-cart-in-box">
				<!-- 购物车列表   -->
				<div class="ldh-cart-in-list" id="cartList">
				</div>
			</div>
			 
			<div class="ldh-clossing-box" id="cart_bottom_bar">
				<table>
					<tbody>
					    <tr><td class="text-right" colspan="2"><div class="ldh-cart-tips" id="tip_amount"></div></td></tr>
						<tr>
							<td><span class="ldh-closing-money">合计：¥<b id="totalPrice">0.00</b></span></td>
							<td class="text-right"><button type="button"
									class="ldh-closing-button" onclick="$ldh_cart.settle()" id="btn_settle">去结算</button></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<div class="ldh-mian clearfix">
	<div class="ldh-main-left">
	    <!-- 商家基本信息   -->
		<div class="ldh-ml-box">
			<div class="ldh-ml-top">
				<div class="ldh-ml-star">
					<span class="ldh-store-star"><em id="score"></em></span><input type="hidden" id="business_Status" /><span class="ldh-store-state" id="businessStatus">loading...</span>
				</div>
				<div class="ldh-store-logo">
					<span class="ldh-store-pic"><img id="logoUrl" src="${ctx}/v1/img/category_f.png" /></span>
					<span class="ldh-store-attention" id="btn_favor"><em>收藏</em></span>
				</div>
				<div class="ldh-store-name" id="shopName">loading...</div>
			</div>
			<div class="ldh-ml-neck">
				<dl>
					<dt>商店特色</dt>
					<dd id="shopSpe">
						
					</dd>
				</dl>
			</div>
			<div class="ldh-ml-neck">
				<dl>
					<dt>店铺分享</dt>
					<dd>
						<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
						
					</dd>
				</dl>
			</div>
			<div class="ldh-store-main">
				<dl>
					<dt>店铺信息<!-- <a href="javascript:$ldh_shop.gotoQrcode()" class="ldh-godownload">下载本店二维码</a> --></dt>
					<dd class="ldh-store-phone">
						<span>店铺电话：</span><span id="phone">loading...</span>
					</dd>
					<dd class="ldh-store-sendup">
						<span>起送金额：</span><span id="minAmount">loading...</span>
						<!-- <input type="hidden" id="min_Amount" /> -->
					</dd>
					<dd class="ldh-store-range">
						<span>配送范围：</span><span id="range">loading...</span>
					</dd>
					<dd class="ldh-store-time">
						<span>营业时间：</span><span id="businessHours">loading...</span>
					</dd>
					<dd class="ldh-store-place">
						<span>店铺地址：</span><span id="address">loading...</span>
					</dd>
				</dl>
			</div>
			<div class="ldh-store-main" style="height:15px;">
            	<dl>
                	<dt id="div_other"></dt>
                </dl>
            </div>
			<div class="ldh-store-bottom">
				<dl>
					<dt>店铺简介</dt>
					<dd id="introduce">loading...</dd>
				</dl>
			</div>
		</div>
	</div>
	<div class="ldh-main-right">
	    <div class="ldh-chooseClass" id="div_currentType" style="display:none;">
        	<h3 id="currentTypeName"></h3>
            <hr>
        </div>
	    <!-- 商家商品列表   -->
	    <div class="ldh-goods-all" id="merchandiseList">
	    </div>
	    
	    <div class="ldh-page">
            	<div class="ldh-page-btn" id="footPage">
                </div>
         </div>
         
	</div>
</div>

<div class="ldh-productdetails-bg"style="display: none;">
	<div class="ldh-productdetails clearfix" id="div_merchandise_detail">
    
    </div>
</div>
<script src="${ctx}/v1/js/default/qrcode.js"></script>
<script src="${ctx}/v1/js/default/jquery.qrcode.js"></script>
<script type="text/javascript">
seajs.use([ctx+'/v1/js/custom/shop/module-shop.js'],function(m){
	m.init(m);	
});

	window._bd_share_config = {
		"common" : {
			"bdSnsKey" : {},
			"bdText" : "",
			"bdDesc" : "",
			"bdMini" : "2",
			"bdMiniList" : false,
			"bdPic" : "",
			"bdStyle" : "0",
			"bdSize" : "16",
			onBeforeClick:function(cmd,config){
				
				return {"bdText" :"有家好店【"+ $("#shopName").html()+"】就在您家附近，可以手机下单、送货到家，随时买随时送，购物原来可以这么任性！马上下载云便利商店客户端体验吧！http://" + $("#shopId").val() + ".storeme.cn",
					"bdDesc" : "云便利商店，您身边的淘宝。它囊括了您身边的超市、便利店、食店、生鲜店、家政服务等各种社区生活服务商家，走到哪里都可以帮您精准找到身边的店铺，为您提供近距离、快速送货的轻松购物体验。","bdPic" : $("#logoUrl").attr("src"),"bdUrl":"http://"+$("#shopId").val()+".storeme.cn"}
			}
		},
		"share" : {},
		"image" : {
			"viewList" : [ "qzone", "tsina", "tqq", "renren", "weixin" ],
			"viewText" : "分享到：",
			"viewSize" : "16"
		},
		"selectShare" : {
			"bdContainerClass" : null,
			"bdSelectMiniList" : [ "qzone", "tsina", "tqq", "renren", "weixin" ]
		}
	};
	with (document)
		0[(getElementsByTagName('head')[0] || body)
				.appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='
				+ ~(-new Date() / 36e5)]; 
	
	
</script>
<%@ include file="/v1/pages/public/foot.jsp"%>
